package com.example.serviceribbon.controller;

import com.alibaba.fastjson.JSONObject;
import com.example.serviceribbon.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {
    @Autowired
    public LoginService loginService;

    @GetMapping(value = "/login")
    public JSONObject getlogin(String name, String pwd) {
        return loginService.getLogin(name, pwd);
    }
}
